<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="text/html" ;charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <link th:href="@{bootstrap-4.3.1/css/bootstrap.css}" rel="stylesheet"/>
</head>
<script>
    var ws = new WebSocket("ws://localhost:9876");
    ws.onopen = function (event) {
        console.log("opened");
        ws.send("Hello Tio WebSocket");
    }
    ws.onmessage = function (p1) {
        console.log(p1.data);
    }
</script>
<body>
<script th:src="@{jquery-3.4.1.js}" type="text/javascript"></script>
<script th:src="@{bootstrap-4.3.1/js/bootstrap.js}"></script>
</body>
</html>